package testMore;

import java.util.Scanner;

public class Test108 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(a*b/g(a,b));
        }
    }

    private static int g(int a, int b) {
        return b==0?a:g(b,a%b);
    }
}
